POV-Ray : Newsgroups : povray.advanced-users : Photons and Media Creation / Reaction : Re: Photons and Media Creation / Reaction Server Time
29 Jul 2024 06:17:31 EDT (-0400)
  Re: Photons and Media Creation / Reaction  
From: Tom Melly
Date: 14 Nov 2002 11:39:19
Message: <3dd3d1b7@news.povray.org>
"GMC" <gmc### [at] speakeasynet> wrote in message news:3dd341e3@news.povray.org...

<snip>

Here's the simplest scene I could come up with that uses both media and photons,
but you're right - a good tutorial would be an asset.

#version 3.5;

#include "colors.inc"
#include "textures.inc"

global_settings {
  assumed_gamma 1.0
  photons {
    spacing 0.01 // larger = worse
  }
}

camera {
  location  <0.0, 10, -20.0>
  look_at   <0.0, 0,  0.0>
}

light_source {
  0*x
  color rgb <1,1,1>
  spotlight
  translate <40, 80,0>
  point_at <0, 0, 0>
  radius 1
  falloff 2
}

media {scattering{1, rgb 0.1} method 3}

plane{y,0 pigment{Gray}} // this object won't affect photons, but will show them

cylinder{<2,5,0>,<2.1,5,0>,1
  texture{pigment{White} finish{Mirror}}
  photons{ // this object will affect photons
    target
    refraction on
    reflection on
  }
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.